package com.study.microservice.springcloud.config;

import feign.Contract;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Author : 周世雄 <br>
 * Date : 2018/11/9 15:16 <br>
 * E-mail : zhoushixiong@chinasoftinc.com
 * Description :
 */
@Configuration
public class FeignConfiguration {

    /**
     * 将契约修改为feign原生默认契约。这样就可以使用feign自带注解了
     * @return 默认的feign契约
     */
    @Bean
    public Contract feignContract() {
        return new feign.Contract.Default();
    }
}
